-
Notifications
You must be signed in to change notification settings - Fork 47
Changes to build and runit on Windows 10 with WSL (Ubuntu) #111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
WebkitGtkSharp is part of https://github.com/GtkSharp: https://github.com/GtkSharp/GtkSharp/tree/develop/Source/Libs/WebkitGtkSharp package is here, don't remember if i pushed it to nuget.org: https://github.com/GtkSharp/GtkSharp/pkgs/nuget/WebkitGtkSharp BUT: Linux only! EDIT: yes, it's on nuget.org too: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for contribution!
Just to confirm, is this PR ready for review, or are you still making changes?
| <_IncludeTizen></_IncludeTizen> | ||
| <_IncludeGtk>true</_IncludeGtk> | ||
| <_IncludeAndroid>true</_IncludeAndroid> | ||
| <_IncludeAndroid>false</_IncludeAndroid> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Making this change may cause CI/CD to cease functioning.
Therefore, I believe it would be preferable either to modify the CI/CD setup accordingly
| sed -i 's/_IncludeAndroid>true/_IncludeAndroid>/g' Directory.Build.Override.props |
# .github/workflows/build-gtk.yml
- sed -i 's/_IncludeAndroid>true/_IncludeAndroid>/g' Directory.Build.Override.props
+ sed -i 's/_IncludeAndroid>/_IncludeAndroid>/g' Directory.Build.Override.propsor revert this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok i changed it because VS 2022 would'nt like to install an old Android SDK or something
|
|
||
| <PropertyGroup> | ||
| <TargetFrameworks>$(_MauiDotNetTfm);$(MauiPlatforms)</TargetFrameworks> | ||
| <TargetFrameworks>$(_MauiDotNetTfm)</TargetFrameworks> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason for deleting the platform?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something like a mismatch from compiler, i can try to reproduce it and show you the error message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In Visual Studio i got messages like that

thats the Text, sry it's in German and everyone it's the same with another Project, you can scroll down there is one i have translated
Problem beim Projekt "Graphics.Skia" während des letzten Vorgangs: Der Wert der Eigenschaft "TargetFrameworks" ist zwischen Zielframeworks inkonsistent. Diese Eigenschaft muss identisch sein, damit die NuGet-Wiederherstellung ordnungsgemäß funktioniert. Der Wert "netstandard2.1;netstandard2.0;net8.0;net8.0-gtk;;net7.0;" aus der Debug|AnyCPU|netstandard2.1-Konfiguration wird verwendet, andere Zielframeworks wählen möglicherweise keine NuGet-Objekte aus.. Sie müssen möglicherweise die Projektmappe neu laden, nachdem Sie das Problem behoben haben.
Problem beim Projekt "Maps" während des letzten Vorgangs: Der Wert der Eigenschaft "TargetFrameworks" ist zwischen Zielframeworks inkonsistent. Diese Eigenschaft muss identisch sein, damit die NuGet-Wiederherstellung ordnungsgemäß funktioniert. Der Wert "netstandard2.1;netstandard2.0;net8.0;net8.0-gtk;" aus der Debug|AnyCPU|netstandard2.1-Konfiguration wird verwendet, andere Zielframeworks wählen möglicherweise keine NuGet-Objekte aus.. Sie müssen möglicherweise die Projektmappe neu laden, nachdem Sie das Problem behoben haben.
Problem beim Projekt "Controls.Xaml" während des letzten Vorgangs: Der Wert der Eigenschaft "TargetFrameworks" ist zwischen Zielframeworks inkonsistent. Diese Eigenschaft muss identisch sein, damit die NuGet-Wiederherstellung ordnungsgemäß funktioniert. Der Wert "netstandard2.1;netstandard2.0;net8.0;net8.0-gtk;net8.0-android;" aus der Debug|AnyCPU|netstandard2.1-Konfiguration wird verwendet, andere Zielframeworks wählen möglicherweise keine NuGet-Objekte aus.. Sie müssen möglicherweise die Projektmappe neu laden, nachdem Sie das Problem behoben haben.
Problem beim Projekt "Controls.Foldable" während des letzten Vorgangs: Der Wert der Eigenschaft "TargetFrameworks" ist zwischen Zielframeworks inkonsistent. Diese Eigenschaft muss identisch sein, damit die NuGet-Wiederherstellung ordnungsgemäß funktioniert. Der Wert "net8.0;net8.0-gtk;net8.0-android;" aus der Debug|AnyCPU|net8.0-Konfiguration wird verwendet, andere Zielframeworks wählen möglicherweise keine NuGet-Objekte aus.. Sie müssen möglicherweise die Projektmappe neu laden, nachdem Sie das Problem behoben haben.
Problem beim Projekt "Microsoft.AspNetCore.Components.WebView.Maui" während des letzten Vorgangs: Der Wert der Eigenschaft "TargetFrameworks" ist zwischen Zielframeworks inkonsistent. Diese Eigenschaft muss identisch sein, damit die NuGet-Wiederherstellung ordnungsgemäß funktioniert. Der Wert "net8.0;net8.0-gtk;" aus der Debug|AnyCPU|net8.0-Konfiguration wird verwendet, andere Zielframeworks wählen möglicherweise keine NuGet-Objekte aus.. Sie müssen möglicherweise die Projektmappe neu laden, nachdem Sie das Problem behoben haben.
Problem beim Projekt "Maui.Controls.Sample" während des letzten Vorgangs: Der Wert der Eigenschaft "TargetFrameworks" ist zwischen Zielframeworks inkonsistent. Diese Eigenschaft muss identisch sein, damit die NuGet-Wiederherstellung ordnungsgemäß funktioniert. Der Wert "net8.0-gtk;net8.0-android;;net8.0" aus der Debug|AnyCPU|net8.0-gtk-Konfiguration wird verwendet, andere Zielframeworks wählen möglicherweise keine NuGet-Objekte aus.. Sie müssen möglicherweise die Projektmappe neu laden, nachdem Sie das Problem behoben haben.
Problem beim Projekt "Compatibility" während des letzten Vorgangs: Der Wert der Eigenschaft "TargetFrameworks" ist zwischen Zielframeworks inkonsistent. Diese Eigenschaft muss identisch sein, damit die NuGet-Wiederherstellung ordnungsgemäß funktioniert. Der Wert "netstandard2.1;netstandard2.0;net8.0;net8.0-gtk;net8.0-android;" aus der Debug|AnyCPU|netstandard2.1-Konfiguration wird verwendet, andere Zielframeworks wählen möglicherweise keine NuGet-Objekte aus.. Sie müssen möglicherweise die Projektmappe neu laden, nachdem Sie das Problem behoben haben.
Problem beim Projekt "Core" während des letzten Vorgangs: Der Wert der Eigenschaft "TargetFrameworks" ist zwischen Zielframeworks inkonsistent. Diese Eigenschaft muss identisch sein, damit die NuGet-Wiederherstellung ordnungsgemäß funktioniert. Der Wert "netstandard2.1;netstandard2.0;net8.0;net8.0-gtk;net8.0-android;" aus der Debug|AnyCPU|netstandard2.1-Konfiguration wird verwendet, andere Zielframeworks wählen möglicherweise keine NuGet-Objekte aus.. Sie müssen möglicherweise die Projektmappe neu laden, nachdem Sie das Problem behoben haben.
Problem beim Projekt "Graphics" während des letzten Vorgangs: Der Wert der Eigenschaft "TargetFrameworks" ist zwischen Zielframeworks inkonsistent. Diese Eigenschaft muss identisch sein, damit die NuGet-Wiederherstellung ordnungsgemäß funktioniert. Der Wert "netstandard2.1;netstandard2.0;net8.0;net8.0-gtk;net8.0-android;;net7.0;net7.0-android;" aus der Debug|AnyCPU|netstandard2.1-Konfiguration wird verwendet, andere Zielframeworks wählen möglicherweise keine NuGet-Objekte aus.. Sie müssen möglicherweise die Projektmappe neu laden, nachdem Sie das Problem behoben haben.
Problem beim Projekt "Essentials" während des letzten Vorgangs: Der Wert der Eigenschaft "TargetFrameworks" ist zwischen Zielframeworks inkonsistent. Diese Eigenschaft muss identisch sein, damit die NuGet-Wiederherstellung ordnungsgemäß funktioniert. Der Wert "netstandard2.1;netstandard2.0;net8.0;net8.0-gtk;net8.0-android;;net7.0;net7.0-android;" aus der Debug|AnyCPU|netstandard2.1-Konfiguration wird verwendet, andere Zielframeworks wählen möglicherweise keine NuGet-Objekte aus.. Sie müssen möglicherweise die Projektmappe neu laden, nachdem Sie das Problem behoben haben.
Problem beim Projekt "Controls.Core" während des letzten Vorgangs: Der Wert der Eigenschaft "TargetFrameworks" ist zwischen Zielframeworks inkonsistent. Diese Eigenschaft muss identisch sein, damit die NuGet-Wiederherstellung ordnungsgemäß funktioniert. Der Wert "netstandard2.1;netstandard2.0;net8.0;net8.0-gtk;net8.0-android;" aus der Debug|AnyCPU|netstandard2.1-Konfiguration wird verwendet, andere Zielframeworks wählen möglicherweise keine NuGet-Objekte aus.. Sie müssen möglicherweise die Projektmappe neu laden, nachdem Sie das Problem behoben haben.
Issue in Graphics.Skia project during last operation: The value of the TargetFrameworks property is inconsistent between target frameworks. This property must be the same for NuGet restore to work properly. The value "netstandard2.1;netstandard2.0;net8.0;net8.0-gtk;;net7.0;" from the Debug|AnyCPU|netstandard2.1 configuration is used, other target frameworks may not select NuGet objects. You may need to reload the solution after resolving the issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any suggestions?
| <ItemGroup> | ||
| <ProjectReference Include="..\Graphics\Graphics.csproj" /> | ||
| </ItemGroup> | ||
| <ItemGroup Condition="$(TargetFramework.Contains('-gtk')) != 'true'"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason for removing the platform specification here as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i have asked the same question here
<ItemGroup Condition="$(TargetFramework.Contains('-gtk')) != 'true'"> <PackageReference Include="GtkSharp" /> </ItemGroup>
For me it doesn't make sense to include GtkSharp if it isn't a -gtk project and also it would'nt compile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my opinion it should look like
<ItemGroup Condition="$(TargetFrameworks.Contains('-gtk')) == 'True'"> <PackageReference Include="CairoSharp" Version="3.24.24.95" /> <PackageReference Include="GtkSharp" Version="3.24.24.95" /> <PackageReference Include="GdkSharp" Version="3.24.24.95" /> <PackageReference Include="PangoSharp" Version="3.24.24.95" /> </ItemGroup>
There was n s missing in TargetFrameworks and it should be "== True", correct me if i'm wrong
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I looked into it on my end, and it seems that MSBuild is case-insensitive.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe i will try it, as i changed the workload i had read it is case sensitive
but it should'nt != it should ==
It was only a --> i show you so you can fix it About me: I have 15years of expierence in .NET with C# and VB but not that mutch on git and github so i have to learn a bit |
Condition="$(TargetFrameworks.Contains('-gtk')) == 'True'"
Nuget.org added to NuGet.config
Issues with GtkSharp packages
WebkitGtkSharp not found on nuget.org or something
Android build deactivated
Project references added